{"version":3,"file":"static/chunks/pages/publisher/[slug]-c93da17791c50396.js","mappings":"mKAwBA,UAAeA,EAAf,G,uBCvBKC,OAAOC,SAAWD,OAAOC,UAAY,IAAIC,KAAK,CAC7C,oBACA,WACE,OAAO,EAAQ,Y","sources":["webpack://_N_E/./src/pages/publisher/[slug]/index.js","webpack://_N_E/?d13f"],"sourcesContent":["import CategoryBooks from \"modules/CategoryBooks\";\nimport { prefetchPublishersBooks } from \"modules/CategoryBooks/actions\";\n\nimport { getPage } from \"components/Pagination/utils\";\n\nexport const getServerSideProps = async ({ query, res }) => {\n res.setHeader(\"Cache-Control\", \"public, s-maxage=86400, stale-while-revalidate=59\");\n\n const { slug = \"\", page } = query;\n const pageFromUrl = getPage(page);\n\n if (!slug) {\n return { notFound: true };\n }\n\n const prefetchedData = await prefetchPublishersBooks({ slug, page: pageFromUrl });\n\n if (prefetchedData.notFound) {\n return { notFound: true };\n }\n\n return prefetchedData;\n};\n\nexport default CategoryBooks;\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/publisher/[slug]\",\n function () {\n return require(\"private-next-pages/publisher/[slug]/index.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/publisher/[slug]\"])\n });\n }\n "],"names":["CategoryBooks","window","__NEXT_P","push"],"sourceRoot":""}